package fr.afcepf.atod.fee.services;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import fr.afcepf.atod.fee.dao.IFeeDao;
import fr.afcepf.atod.fee.dao.IInterestRateDao;

public class FeeRateManagement implements IFeeRateManagement {

	@SuppressWarnings("unused")
	private static Logger logger = LoggerFactory.getLogger(FeeRateManagement.class);
	
	// TODO faire l'injection dans spring
	private IInterestRateDao interestRateDao;
	
	private IFeeDao feeDao;
	
	
	@Override
	public double getCurrentInterestRate(int nb_month) {
		return interestRateDao.getRangeNumByMonth(nb_month);
	}

	@Override
	public double getFee(double amount) {
		return feeDao.getFeeByAmount(amount);
	}

}
